import { Controller, Post, UploadedFile } from '@nestjs/common'
import { Auth } from './../auth/auth.decorator'
import { Uploader } from './upload.decorator'

@Controller('upload')
export class UploadController {
	@Post('image')
	@Uploader('image')
	@Auth()
	image(@UploadedFile() file: Express.Multer.File) {
		return { data: file }
	}
}
